package com.groupten.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
/**
 * 题库表
 */
@Data
@TableName("question")
public class QuestionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 题库题目编号
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;

    /**
     * 题目类型
     */
    private Integer questionType;

    /**
     * 题目科目
     */
    private Integer subject;

    /**
     * 题目知识点
     */
    private Integer knowledgePoint;

    /**
     * 题目分值
     */
    private Double score;

    /**
     * 题目难度
     */
    private Double level;

    /**
     * 题目文本
     */
    private String questionText;

    /**
     * 答案文本
     */
    private String answerText;


}
